<?php
	$id = $_POST['id_layanan'];
	$layanan = $_POST['layanan'];
	$jenis = $_POST['jenis_layanan'];


	if(isset($_POST['submit'])){
		$sql="update master_layanan set layanan='$layanan', id_jenis_layanan=$jenis where id_layanan='$id'";
		$qry=mysql_query($sql);
	}
	
	$url_sukses='utama.php?module=mod_layanan';
	if($qry){
		echo "<meta http-equiv='refresh' content='0; url=$url_sukses'>";
		exit;
	}else{
		echo mysql_error();
	}
?>